﻿@model RestController.SampleWeb.Models.Category

@{ View.Title = "Edit Category"; }

<h2>Edit Category</h2>

@using (Html.BeginForm("Edit", "Categories", new { id = Model.Id }, FormMethod.Post))
{
  <p>
    <label>Name</label><br />
    @Html.TextBoxFor(x => x.Name)
    @Html.ValidationMessageFor(x => x.Name)
  </p>
  
  <p>
    <button type="submit">
      Update
    </button>
    or @Html.ActionLink("Cancel", "Index")
  </p>
}

